home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #ifdef AMIGA
- #include <gfxamiga.h>
- #else
- #include <gfx.h>
- #endif
-
- help()
- {
- printf("set text size or font\n");
- printf("tsf [options]\n");
- printf("options:\n");
- printf(" -w n sets angle in degree\n");
- printf(" -xs n sets size of characters (integers)\n");
- printf(" -ys n sets size of characters (integers)\n");
- printf(" -xt n sets repetition (thicknes) for x\n");
- printf(" -yt n sets repetition (thicknes) for y\n");
- printf(" -font name sets fontname\n");
- printf(" -c n sets paper and ink colour\n");
- }
-
- main(argc,argv)
- int argc;
- char *argv[];
- {
- int x,y,i,n,
- xsize=0,
- ysize=0,
- xthick=0,
- ythick=0,
- angle=0,
- colour=0;
- char s[80],fontname[80];
- float a;
-
- fontname[0]=0;
- if(!checkopt(argc,argv,"-t",s)) help;
- if(checkopt(argc,argv,"-w",s)) angle=atoi(s);
- if(checkopt(argc,argv,"-xs",s)) xsize=atoi(s);
- if(checkopt(argc,argv,"-ys",s)) ysize=atoi(s);
- if(checkopt(argc,argv,"-xt",s)) xthick=atoi(s);
- if(checkopt(argc,argv,"-yt",s)) ythick=atoi(s);
- if(checkopt(argc,argv,"-font",s)) strcpy(fontname,s);
- if(checkopt(argc,argv,"-c",s)) colour=atoi(s);
-
- tekopen();
- textparam(xsize,ysize,xthick,ythick,angle,fontname);
- if(colour>0) setcolour(colour);
-
- close(_tek4014);
- exit(0);
- }
-